<div id="page-wrapper"><div id="page">

  <div id="header"><div class="section">

   
      <h1><a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo"><img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" /></a></h1>
 
  </div></div><!-- /.section, /#header -->

<?php if ($page['navigation'] || $main_menu): ?>
      <div id="navigation" class="horizontalnav"><div class="section">

        
        <?php print render($page['navigation']); ?>

      </div></div><!-- /.section, /#navigation -->
    <?php endif; ?>


  <div id="main-wrapper" class="<?php if ($main_menu || $page['navigation']) { print 'with-navigation'; } ?>"><div id="main">
   
   <div id="sidebar-left"><?php if ($page['sidebar_first']): ?> 
    <div id="sidebar-first">
      <?php print render($page['sidebar_first']); ?>
    </div>
	<?php if ($page['sidebar_second']): ?>    
    <div id="sidebar-second">
      <?php print render($page['sidebar_second']); ?>
    </div>
  <?php endif; ?>
	 <?php endif; ?>
	</div>
   
  

    <div id="content" class="column"><div class="section">
      <?php print render($page['highlighted']); ?>
      
      <a id="main-content"></a>
      <?php if ($page['breadbox']): ?> 
		<?php print render($page['breadbox']); ?>
        <?php endif; ?>
	  <?php print render($title_prefix); ?>
      <?php if ($title): ?>
        <h1 class="title" id="page-title"><?php print $title; ?></h1>
      <?php endif; ?>
      <?php print render($title_suffix); ?>
      <?php print $messages; ?>
      <?php if ($tabs = render($tabs)): ?>
        <div class="tabs"><?php print $tabs; ?></div>
      <?php endif; ?>
	  <?php if ($page['featured_images']): ?> <div id="featured-images">
		<?php print render($page['featured_images']); ?></div>
        <?php endif; ?>
	  <?php if ($page['featured']): ?> <div id="featured">
		<?php print render($page['featured']); ?></div>
        <?php endif; ?>
      <?php print render($page['help']); ?>
      <?php if ($action_links): ?>
        <ul class="action-links"><?php print render($action_links); ?></ul>
      <?php endif; ?>
      <?php print render($page['content']); ?>
      <?php print $feed_icons; ?>
    </div></div><!-- /.section, /#content -->

    
<div class="cleaner"></div>
  </div></div><!-- /#main, /#main-wrapper -->

  <div id="footer" class="horizontalnav"><?php print render($page['footer']); ?></div>

</div></div><!-- /#page, /#page-wrapper -->

<?php print render($page['bottom']); ?>
